export const columns = [
  {
    title: '#',
    scopedSlots: { customRender: 'serial' }
  },
  {
    title: '创建时间',
    dataIndex: 'createTime'
    // scopedSlots: { customRender: 'createTime' }
  },
  {
    title: '提成类型',
    dataIndex: 'feeType',
    width: 170
  },
  {
    title: '规则名称',
    dataIndex: 'name',
    width: 120,
    scopedSlots: { customRender: 'name' }
  },
  {
    title: '工作形式',
    dataIndex: 'type'
  },
  {
    title: '岗位类型',
    dataIndex: 'partment'
  },
  {
    title: '具体岗位',
    dataIndex: 'job'
    // scopedSlots: { customRender: 'completeTime' }
  },
  // {
  //   title: '生效年份',
  //   dataIndex: 'year'
  // },
  {
    title: '发放条件',
    dataIndex: 'condition'
  },
  {
    title: '提成比率和阶梯区间',
    dataIndex: 'content',
    scopedSlots: { customRender: 'content' }
  },
  {
    title: '操作',
    dataIndex: 'action',
    width: '150px',
    scopedSlots: { customRender: 'action' }
  }
]
export const mockData = [{
  id: 1,
  content: '提成比例比率：4%。对应阶梯值：50000，阶梯浮动额度：5000，阶梯浮动奖金：100',
  feeType: '信息费',
  year: '2022',
  type: '兼职',
  job: '兼职业务员',
  name: '兼职业务员信息费',
  partment: '业务员',
  condition: '签署合同且收到预付款时'
},
{
  id: 2,
  content: '提成占合同额：0.5%',
  feeType: '固定提成',
  year: '2022',
  type: '兼职',
  job: '兼职业务员',
  partment: '业务员',
  name: '兼职业务员固定提成',
  condition: '收到合同第一笔款项时'
},
{
  id: 4,
  content: '毛利对应区间：10%～50%，奖金利率占比：10%～30%',
  feeType: '业务员毛利奖金',
  year: '2022',
  type: '全职',
  job: '全职业务员',
  partment: '业务员',
  name: '业务员毛利奖金',
  condition: '项目交付并验收时（这个确认下，合同纬度上的状态）'
},
{
  id: 6,
  content: '阶梯式提成对应比率：1.5%，0.5%，0.3%，0.2%。对应合同金额转折点：0, 20000，100000，200000',
  feeType: '阶梯式提成',
  year: '2022',
  type: '全职',
  job: '全职项目经理',
  partment: '工程',
  name: '硬件固定阶梯比率提成',
  condition: '立项时候发放（我们是在合同纬度做到提成，立项和合同对应关系？）'
},
{
  id: 7,
  content: '阶梯式提成对应比率：1.5%，1%，0.8%，0.5%。对应合同金额转折点：0, 100000, 300000,500000',
  feeType: '阶梯式提成',
  year: '2022',
  type: '全职',
  job: '全职项目经理',
  partment: '工程',
  name: '软件固定阶梯比率提成',
  condition: '立项时候发放（我们是在合同纬度做到提成，立项和合同对应关系？）'
},
{
  id: 9,
  content: '毛利占比：12%，考核项占比：40% ，40%，20%',
  feeType: '绩效毛利奖金',
  year: '2022',
  type: '全职',
  job: '全职员工',
  partment: '生产',
  name: '策划提成',
  condition: '项目验收时结算时'
},
{
  id: 10,
  content: '提成占合同比率：6%，，考核项占比：30% ，30%，20%，20%',
  feeType: '生产提成',
  year: '2022',
  type: '全职',
  job: '生产',
  partment: '生产部门',
  name: '员工生产提成',
  condition: '项目验收时结算时'
}
]

export const jobs = [
  {
    label: '业务员',
    value: 1,
    children: [{
      label: '兼职业务员',
      value: 1
    },
    {
      label: '全职业务员',
      value: 2
    }
    ]
  }, { label: '工程', value: 2 }, { label: '生产', value: 3 }, { label: '行政', value: 4 }]

export const yewuConfig = {
  yewuBouns: { base: { start: undefined, end: undefined }, bouns: { start: undefined, end: undefined } },
  msgFee: {
    contrctAmount: undefined,
    rate: undefined,
    contrctStep: undefined,
    bonusStep: undefined
  },
  staticBonus: { rate: 1 }

}
export const engineConfig = {
  hardware: {
    count: 4,
    rates: [undefined, undefined, undefined, undefined],
    steps: [undefined, undefined, undefined]
  },
  software: {
    count: 4,
    rates: [undefined, undefined, undefined, undefined],
    steps: [undefined, undefined, undefined]
  },
  bonus: {
    count: 4,
    rates: [undefined, undefined, undefined, undefined]
  },
  rates: {
    ext13: undefined,
    ext14: undefined,
    ext15: undefined
  }
}
export const prodConfig = {
  rates: [undefined, undefined, undefined],
  statusRates: [undefined, undefined, undefined, undefined, undefined]
}
export const adminConfig = {
  rate: undefined
}
